<?php
/***
 * An interface for posting
 *
 *
 **/
require_once 'tpl.php';
require_once 'thread.php';

tplHead();

( $_REQUEST['pnum'] > 0 
  && $_REQUEST['tnum'] > 0 ) ? tplEditPost( getPost((int)$_REQUEST['tnum'], (int)$_REQUEST['pnum']) )
                             : tplNewPost( (int)$_REQUEST['tnum'], (int)$_REQUEST['fnum'] );   
 
tplFoot();
?>
